﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 
<%@page import="java.io.InputStream"%>
<%@page import="org.apache.ibatis.io.Resources"%>
<%@page import="org.apache.ibatis.session.SqlSessionFactory"%>
<%@page import="org.apache.ibatis.session.SqlSession"%>
<%@page import="java.io.IOException"%>
<%@page import="org.apache.ibatis.session.SqlSessionFactoryBuilder"%>
<%@page import="util.Info"%>
<%@page import="dao.CommDAO"%>
<%@page import="util.PageManager"%>
<%@page import="util.StrUtil"%>
  <%
HashMap user = Info.getUser(request);
String uname = user.get("uname").toString();
String utype = user.get("utype").toString();
String userid = user.get("id").toString();
 %>
<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]-->

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="News - Clean HTML5 and CSS3 responsive template">
<meta name="author" content="MyPassion">

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

<title>News - Responsive HTML5 and CSS3 template</title>

<link rel="shortcut icon" href="img/sms-4.ico" />

<!-- STYLES -->
<link rel="stylesheet" type="text/css" href="/wallpaper/frontfiles/css/superfish.css" media="screen"/>
<link rel="stylesheet" type="text/css" href="/wallpaper/frontfiles/css/fontello/fontello.css" />
<link rel="stylesheet" type="text/css" href="/wallpaper/frontfiles/css/flexslider.css" media="screen" />
<link rel="stylesheet" type="text/css" href="/wallpaper/frontfiles/css/ui.css" />
<link rel="stylesheet" type="text/css" href="/wallpaper/frontfiles/css/base.css" />
<link rel="stylesheet" type="text/css" href="/wallpaper/frontfiles/css/style.css" />
<link rel="stylesheet" type="text/css" href="/wallpaper/frontfiles/css/960.css" /> 
 
<!--[if lt IE 9]> <script type="text/javascript" src="/wallpaper/frontfiles/js/customM.js"></script> <![endif]-->

 

</head>

<% 
HashMap ext = new HashMap(); 
String tglparentid=request.getParameter("tglparentid")==null?"":request.getParameter("tglparentid"); 
ext.put("tglparentid",tglparentid); 
ext.put("uname",Info.getUser(request).get("uname")); 
new CommDAO().insert(request,response,"resources",ext,true,false); 
%>
<body>

<!-- Body Wrapper -->
<div class="body-wrapper">
	<div class="controller">
    <div class="controller2">

<jsp:include page="../top.jsp"></jsp:include>
       
<!-- servletformstart 
<form  action="/wallpaper/wallpaper?ac=xresourcestj&tglparentid=<%=tglparentid%>"     style="display: inline;font-size: 15px" name="f1" method="post"  onsubmit="return checkform()" >
 servletformend -->
 <!-- s2formstart -->
<form name="f1" method="post" onsubmit="return checkform()" action="/wallpaper/wallpaper/xresourcestj.do?tglparentid=<%=tglparentid%>" > 
 <!-- s2formend -->
<center>
<table style="margin-top:0px;"  class="table1"  align="center" width="99%">

<thead>
<tr>
	<td height="32" style="background-color: #fafafa" colspan="20" align="left">
	<font style="font-size: 15px;color: #EB5253">
	&nbsp;&nbsp;您当前的位置 : 信息添加
	</font>
	</td> 
</tr>
</thead>

<tr>
<td width="21%" height="32" align="center">标题</td>
<td width="79%" align="left"  style="padding-left: 5px"><input type=text  onblur='checkform()' class='' id='title' name='title' size=60 /><label style='display:inline' id='clabeltitle' /></td>
</tr>
<tr>
<td width="21%" height="32" align="center">类别</td>
<td width="79%" align="left"  style="padding-left: 5px"><span id="stypedanx"><label  style='display:inline' ><input type=radio checked=checked name='stype' id='stype' value='自然风光' />&nbsp;自然风光 </label>&nbsp;
<label  style='display:inline' ><input type=radio  name='stype' id='stype' value='社会人文' />&nbsp;社会人文 </label>&nbsp;
<label  style='display:inline' ><input type=radio  name='stype' id='stype' value='艺术作品' />&nbsp;艺术作品 </label>&nbsp;
<label  style='display:inline' ><input type=radio  name='stype' id='stype' value='科技科幻' />&nbsp;科技科幻 </label>&nbsp;
</span></td>
</tr>
<tr>
<td width="21%" height="32" align="center">页头推荐</td>
<td width="79%" align="left"  style="padding-left: 5px"><span id="ipushdanx"><label  style='display:inline' ><input type=radio checked=checked name='ipush' id='ipush' value='否' />&nbsp;否 </label>&nbsp;
<label  style='display:inline' ><input type=radio  name='ipush' id='ipush' value='是' />&nbsp;是 </label>&nbsp;
</span></td>
</tr>
<tr>
<td width="21%" height="32" align="center">壁纸</td>
<td width="79%" align="left"  style="padding-left: 5px"><%=Info.getImgUpInfo(65)%></td>
</tr>
<tr>
<td width="21%" height="32" align="center">内容</td>
<td width="79%" align="left"  style="padding-left: 5px"><%=Info.fck(265,"")%></td>
</tr>


<tr>
<td height="35" align="center" colspan="2">

<label>
<input  type="button"  onclick="if(checkform()){f1.submit();}"   name="button" id="button" value="提交信息" />
</label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;                      
<input type=button value='返回上页' onclick='window.location.replace("xresourcescx.jsp")' />                               
</td> 
</tr>

<tbody>
</tbody>
</table>
</center>
</form>

        
        <jsp:include page="foot.jsp"></jsp:include>
        
        
         
    
    </div>
	</div>
</div>
<!-- / Body Wrapper -->


<!-- SCRIPTS -->
<script type="text/javascript" src="/wallpaper/frontfiles/js/jquery.js"></script>
<script type="text/javascript" src="/wallpaper/frontfiles/js/easing.min.js"></script>
<script type="text/javascript" src="/wallpaper/frontfiles/js/1.8.2.min.js"></script>
<script type="text/javascript" src="/wallpaper/frontfiles/js/ui.js"></script>
<script type="text/javascript" src="/wallpaper/frontfiles/js/carouFredSel.js"></script>
<script type="text/javascript" src="/wallpaper/frontfiles/js/superfish.js"></script>
<script type="text/javascript" src="/wallpaper/frontfiles/js/customM.js"></script>
<script type="text/javascript" src="/wallpaper/frontfiles/js/flexslider-min.js"></script>
<script type="text/javascript" src="/wallpaper/frontfiles/js/tweetable.js"></script>
<script type="text/javascript" src="/wallpaper/frontfiles/js/timeago.js"></script>
<script type="text/javascript" src="/wallpaper/frontfiles/js/jflickrfeed.min.js"></script>
<script type="text/javascript" src="/wallpaper/frontfiles/js/mobilemenu.js"></script>

<!--[if lt IE 9]> <script type="text/javascript" src="/wallpaper/frontfiles/js/html5.js"></script> <![endif]-->
<script type="text/javascript" src="/wallpaper/frontfiles/js/mypassion.js"></script>


</body>
</html>
 
<script type="text/javascript">
<%
if(session.getAttribute("suc")!=null)
{
session.removeAttribute("suc");
%>
alert("操作成功"); 
<%}
%>
</script>
            <script language=javascript src='/wallpaper/js/My97DatePicker/WdatePicker.js'></script>
<script language=javascript src='/wallpaper/js/popup.js'></script>
<script language=javascript src='/wallpaper/js/ajax.js'></script>
<%@page import="util.Info"%>
<%@page import="util.Info"%> 
<%@page import="java.util.ArrayList"%> 
<%@page import="java.util.HashMap"%> 
<%@page import="util.PageManager"%> 
<%@page import="dao.CommDAO"%> 
<script language=javascript >  
 
 function checkform(){  
var titleobj = document.getElementById("title");  
if(titleobj.value==""){  
document.getElementById("clabeltitle").innerHTML="&nbsp;&nbsp;<font color=red>请输入标题</font>";  
return false;  
}else{
document.getElementById("clabeltitle").innerHTML="  ";  
}  
  
return true;   
}   
</script>  
